from selenium import webdriver
from scrapy.selector import Selector
#设置chromedriver不加载图片
#是固定的模版
chrome_opt = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images":2}
chrome_opt.add_experimental_option("prefs", prefs)
browser = webdriver.Chrome(executable_path="d:/chromedriver.exe",chrome_options=chrome_opt)
browser.get("http://weibo.com/")